"""
@Author：WangYuXiang
@E-mile：Hill@3io.cc
@CreateTime：2021/3/24 16:28
@DependencyLibrary：无
@MainFunction：无
@FileDoc： 
    setting.py
    文件说明
@ChangeHistory:
    datetime action why
    example:
    2021/3/24 16:28 change 'Fix bug'
        
"""
import os

# Web app cofing
APP_NAME = 'Test'
HOST = '0.0.0.0'
PORT = 81
DEBUG = True
AUTO_RELOAD = True

# Apps config
AUTO_LOAD_APPS = True
APPS_FOLDER_NAME = 'apps'
APPS_FOLDER_PATH = os.path.join(os.getcwd(), APPS_FOLDER_NAME)
APP_MODULES = {
    # 'blueprint_name':‘module_path’
    'auth': 'common.auth',
    'accessory': 'common.accessory',
    # 'school':'apps.school' # 可写可不写 
}

# common appa config
# Auth app config
TOKEN_KEY = 'X-Token'
TOKEN_SECRET = 'asdahd9wa88(*(6asdkland8^%^%^%dajsndajbdj'

# Accessory app config
UPLOAD_PATH = os.path.join(os.getcwd(), 'upload')
OSS_UPLOAD = False
OSS_ID = None
OSS_SECRET = None

# ORM Config
DB_CONNECT_STR = 'sqlite://db.sqlite3'
